package com.xb.cloud.gateway.common.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class WechatConfig {
	
	@Value("${APPID}")
	public   void setAPPID(String aPPID) {
		APPID = aPPID;
	}

	@Value("${APP_SECRET}")
	public   void setAPP_SECRET(String aPP_SECRET) {
		APP_SECRET = aPP_SECRET;
	}

	@Value("${MCH_ID}")
	public   void setMCH_ID(String mCH_ID) {
		MCH_ID = mCH_ID;
	}

	@Value("${KEY}")
	public   void setKEY(String kEY) {
		KEY = kEY;
	}
	@Value("${TRADE_TYPE}")
	public   void setTRADE_TYPE(String tRADE_TYPE) {
		TRADE_TYPE = tRADE_TYPE;
	}
	
	@Value("${POINT_URL_PREFIX}")
	public   void setPOINT_URL_PREFIX(String pOINT_URL_PREFIX) {
		POINT_URL_PREFIX = pOINT_URL_PREFIX;
	}

	@Value("${PAGE_URL_PREFIX}")
	public   void setPAGE_URL_PREFIX(String pAGE_URL_PREFIX) {
		PAGE_URL_PREFIX = pAGE_URL_PREFIX;
	}
 
	@Value("${NOTIFY_URL}")
	public   void setNOTIFY_URL(String nOTIFY_URL) {
		NOTIFY_URL = nOTIFY_URL;
	}

 //公众号支付APPID
  public static   String APPID = "wxxxx";
  //公众号支付AppSecret
  public static     String APP_SECRET = "xxxxxxxxxxxx";
    //公众号支付商户号
  public static     String MCH_ID = "xxxx";
    //商户后台配置的一个32位的key,位置:微信商户平台-账户中心-API安全
  public static    String KEY = "xxx";
    //交易类型
  public static    String TRADE_TYPE = "JSAPI";
    
  public static   String POINT_URL_PREFIX="http://point.xianbeitech.com";

 // public static   String PAGE_URL_PREFIX="http://page.xianbei.com,http://api.cloud.xianbeitech.com";
   public static   String PAGE_URL_PREFIX="*";
    
  public static   String NOTIFY_URL="http://point.xianbeitech.com/mobile/wechat/notify.do";
	
}
